import model from '../../models/cookbookModel'

// 初始化swiper数据
export const initSwiper = () => async (dispatch) => {
    let ret = await model.getSwiperData()
    dispatch({
        type: 'initSwiper',
        // 普通js对象
        data: ret.data.data
    })
}